<?php
if ( !defined( "IN_OP" ) )
{
    exit( "You can't access this file directly..." );
}
global $curruser;
global $g_color;
global $g_conf;
if ( $curruser['acl'] == 1 )
{
    $conf = new Config();
    $news = $conf->Get( "news_en" );
    if ( $news != "" )
    {
        $news = "<font color=red><b>福彩3D系统公告: </b>".$news."</font>&#12288;&#12288;";
    }
    if ( 2 <= $curruser['acl'] )
    {
        $en = $conf->Get( "news_th_3d" );
        if ( $en != "" )
        {
            $news = $news."<font color='#008F00'><b>福彩3D管理层公告: </b>".$en."</font>&#12288;&#12288;";
        }
    }
    if ( $news == "" )
    {
        $news = $conf->Get( "news_3d" );
    }
    else
    {
        $news = $news.$conf->Get( "news" );
    }
    echo "<table width=\"".( $curruser['acl'] == 1 ? 700 : 758 )."\" border=\"1\" cellspacing=\"2\" cellpadding=\"2\" bordercolor=\"".$g_color."\">\r\n      <tr>\r\n        <td nowrap bgcolor=#af88ff><font color=#ffffff>&nbsp;&nbsp;\r\n          即时讯息&nbsp; &nbsp;</font>\r\n        </td>\r\n        <td width=\"100%\" style=\"white-space:normal\" valign=middle id=\"newsmarquee\">\r\n           <marquee BEHAVIOR=SCROLL scrolldelay=\"200\" align=middle bgcolor=white onmouseover=this.stop() onmouseout=this.start()\r\n           style=\"font-size:11pt\">\r\n    \t\t".$news."\r\n    \t\t</marquee>\r\n        </td>\r\n      </tr>\r\n    </table><br>";
}
?>